import { createSlice } from "@reduxjs/toolkit";

const tabSlice = createSlice({
    name:"tab",

    // data
    initialState:{
        isCollapse:false,
    },
    
    // methods
    reducers: {
        collapseMenu:(state,data)=>{
            state.isCollapse = !state.isCollapse;
        }
    }


})

export const {collapseMenu}  = tabSlice.actions;
export default tabSlice.reducer;